package com.bw.house.service.impl;

import com.bw.house.dao.HouseImgsDao;
import com.bw.house.entity.HouseImgsEntity;
import com.bw.house.service.HouseImgsService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;


@Service("houseImgsService")
public class HouseImgsServiceImpl extends ServiceImpl<HouseImgsDao, HouseImgsEntity> implements HouseImgsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseImgsEntity> page = this.page(
                new Query<HouseImgsEntity>().getPage(params),
                new QueryWrapper<HouseImgsEntity>()
        );

        return new PageUtils(page);
    }

}